<form name="form" method="post" onSubmit="return CheckForm(this);">
来源:百度知道 编辑:UC知道 时间:2024/05/16 23:15:32
<form name="form" method="post" onSubmit="return CheckForm(this);">这个是我在读,别人的代码时读到的对 onSubmit="return CheckForm(this);"不太明白,它是提交给本页是吧?那它与下面这个:
<form id="form1" name="form1" method="post" action="">
有什么区别呢?
嘻嘻初学都,请尽量赐教
<form id="form1" name="form1" method="post" action="">
有什么区别呢?
嘻嘻初学都,请尽量赐教
给你一个提示,比我我们在做一张会员申请的表单,
要求在提交时让程序检测,会员名不能为中文汉字,
只可以是小写应为字母。
怎么做?用户一点提交,就传出去了。
onSubmit="XXX"
所以加这个东西
XXX的位置可以放一个函数,让我们进行对用户名的
检测,检测完毕弱符合,那么返回true(真),不符合返
回false(假),就是在xxx的位置用true或false填充,这
个时候,表但只有当这个值为true(真),才进行提交,
否则就不提交,给我们这样一个操作的可能。
onSubmit="return CheckForm(this);"
是在提交之前 执行 CheckForm(this) 定义的 JavaScript
是js 来检查表单的完整性和有效性的
<form name="
<form name="form" method="post" onSubmit="return CheckForm(this);">
<FORM name=login onsubmit="return false;" action=/ method=post>
<form name="login" method="post" action="/LoginTransactor">
<form action="register_2.asp?action=saveuser" method=POST name=adduser id=adduser>
<form name="index" method="post" action="Check.asp" onsubmit="return checkData()">
<form name="form1" method="post" action="guanggao.asp?action=save">
JSP的传递问题 <form name="classid" action="?action=del" method="post" >
response.write "<form name='VoteForm' method='post' action='vote.asp' target='_blank'>"
这个代码怎么来的(<form name="form1" method="post" action="Chkuser.asp">)或者解释